<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Cache-Control" content="No-Cache">
	<meta http-equiv="Pragma" content="No-Cache">

	<title>운세의 신</title>

	<link rel="stylesheet" type="text/css" href="/css/common.css">
	
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
</head>
<body>
<!-- Header -->
<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/header.php'; ?>
<!--// Header -->

<!-- Contents -->
<div>
	<h2>운세 서비스 관리 - 서비스 리스트</h2>
</div>
<div>
	<form method="post" id="frm" action="/admin/service/update">
		<fieldset>
			<table width="100%" border="1" cellpadding="2" cellspacing="0">
				<tr>
					<td>No</td>
					<td>그룹ID</td>
					<td>서비스ID</td>
					<td>서비스명</td>
					<td>이용가능 회원등급</td>
					<td>소진 포인트</td>
					<td>개별구매가격(VAT포함)</td>
					<td>서비스URL</td>
				</tr>
<?	foreach ($service_list as $items) : ?>
				<tr>
					<td><input type="hidden" name="idx[]" value="<?=$items['idx'];?>" /><?=$items['idx'];?></td>
					<td><input type="text" name="service_group_id[]" value="<?=$items['service_group_id'];?>" /></td>
					<td><input type="text" name="service_id[]" value="<?=$items['service_id'];?>" /></td>
					<td><input type="text" name="service_name[]" value="<?=$items['service_name'];?>" /></td>
					<td>
						<select name="package_cd[]">
							<option value="<?=$items['package_cd'];?>" selected="selected"><?=$items['package_cd'];?>:<?=$items['package_name'];?></option>
							<option value="0">0:비회원</option>
							<option value="1">1:일반회원</option>
						</select>
					</td>
					<td><input type="text" name="price[]" value="<?=$items['price'];?>" /></td>
					<td><input type="text" name="price_vat[]" value="<?=$items['price_vat'];?>" /></td>
					<td><input type="text" name="service_url[]" value="<?=$items['service_url'];?>" /></td>
				</tr>
<?	endforeach ?>
			</table>
			<input type="submit" value="저장" />
		</fieldset>
	</form>
</div>
<div>
	<h2>서비스 등록</h2>
</div>
<div>
	<form method="post" id="frm" action="/admin/service/insert">
		<fieldset>
			<table width="100%" border="1" cellpadding="2" cellspacing="0">
				<tr>
					<td>그룹ID</td>
					<td>서비스ID</td>
					<td>서비스명</td>
					<td>이용가능 회원등급</td>
					<td>소진 포인트</td>
					<td>개별구매가격(VAT포함)</td>
					<td>서비스URL</td>
				</tr>
				<tr>
					<td><input type="text" name="service_group_id" /></td>
					<td><input type="text" name="service_id" /></td>
					<td><input type="text" name="service_name" /></td>
					<td>
						<select name="package_cd">
							<option value="0">비회원 (0)</option>
							<option value="1">일반회원 (1)</option>
						</select>
					</td>
					<td><input type="text" name="price" /></td>
					<td><input type="text" name="price_vat" /></td>
					<td><input type="text" name="service_url" value="/unse/" /></td>
				</tr>
			</table>
			<input type="submit" value="저장" />
		</fieldset>
	</form>	
</div>
<!--// Contents -->

<!-- Footer -->
<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/footer.php'; ?>
<!--// Footer -->
</body>
</html>